package org.example.aienglishapp.mapper.article;

import org.apache.ibatis.annotations.Mapper;
import org.example.aienglishapp.entity.article.Article;

import java.util.List;

@Mapper
public interface ArticleMapper {
    void insertArticle(Article article);

    Article getArticleById(Long id);

    void updateArticle(Article article);

    void deleteArticle(Long id);

    List<Article> getAllArticles();

    Long getLastArticleId();

}